package com.chenyue.cm.group.service.impl;


import com.chenyue.cm.base.dao.LcBaseMapper;
import com.chenyue.cm.base.service.BaseServiceImpl;
import com.chenyue.cm.group.dao.JdGroupUserMapper;
import com.chenyue.cm.group.domain.JdGroupUser;
import com.chenyue.cm.group.service.JdGroupUserService;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.Serializable;


/**
 * @author chenyue-cm
 */
@Service(value = "JdGroupUserService")
public class JdGroupUserServiceImpl extends BaseServiceImpl<JdGroupUser> implements JdGroupUserService {

    private final JdGroupUserMapper jdGroupUserMapper;

    public JdGroupUserServiceImpl(@Qualifier("jdGroupUserMapper") JdGroupUserMapper jdGroupUserMapper) {
        this.jdGroupUserMapper = jdGroupUserMapper;
    }

    @Override
    @Resource(name = "jdGroupUserMapper")
    public void setBaseMapper(LcBaseMapper<JdGroupUser, Serializable> baseMapper) {
        this.baseMapper = baseMapper;
    }

    /**
     * 删除
     *
     * @param id 主键
     */
    @Override
    public void delete(Integer id) {
        jdGroupUserMapper.deleteById(id);
    }
}
